import base from '@/api/baseurl';
import request from '@/utils/request'

export function findTREAdjustmentRule(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TREAdjustmentRuleDevice/findTREAdjustmentRule',
    method: 'get',
    params: query
  })
}

//单行删除
export function daleteTREAdjustmentRule(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TREAdjustmentRuleDevice/daleteTREAdjustmentRule',
    method: 'get',
    params: query
  })
}


export function addTREAdjustmentRule(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TREAdjustmentRuleDevice/addTREAdjustmentRule',
    method: 'post',
    data
  })
}

export function updateTREAdjustmentRule(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TREAdjustmentRuleDevice/updateTREAdjustmentRule',
    method: 'post',
    data
  })
}

/* 所属法人列表 */
export function findoprt_str(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TREAdjustmentRuleDevice/findoprt_str',
    method: 'get',
    params: query
  })
}